<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>雇主订单详情页面</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="description" content=""/>
    <meta name="format-detection" content="telephone=no" />
    <meta name=""/>

    <link rel="stylesheet"  th:href="@{/css/tasp.css}"/>
    <link th:href="@{/css/orderconfirm.css}" rel="stylesheet" />
    <header th:replace="header::html"></header>
    <style>
        #page{width:auto;}
        #comm-header-inner,#content{width:950px;margin:auto;}
        #logo{padding-top:26px;padding-bottom:12px;}
        #header .wrap-box{margin-top:-67px;}
        #logo .logo{position:relative;overflow:hidden;display:inline-block;width:140px;height:35px;font-size:35px;line-height:35px;color:#f40;}
        #logo .logo .i{position:absolute;width:140px;height:35px;top:0;left:0;background:url(http://a.tbcdn.cn/tbsp/img/header/logo.png);}
    </style>

</head>
<body data-spm="1">


<div id="page">

    <div id="content" class="grid-c">

        <form id="J_Form" name="J_Form" action="" method="post">

            <div>
                <input type="hidden" id="wid" th:value="${work.wid}">
                <h3 class="dib">确认订单信息</h3>
                <table cellspacing="0" cellpadding="0" class="order-table" id="J_OrderTable" summary="统一下单订单信息区域">
                    <caption style="display: none">统一下单订单信息区域</caption>
                    <thead>
                    <tr>
                        <th class="s-title">店铺宝贝<hr/></th>
                        <th class="s-price">单价(元)<hr/></th>
                        <th class="s-amount">数量<hr/></th>
                        <th class="s-agio">优惠方式(元)<hr/></th>
                        <th class="s-total">小计(元)<hr/></th>
                    </tr>
                    </thead>
                    <tbody data-spm="3" class="J_Shop" data-tbcbid="0" data-outorderid="47285539868"  data-isb2c="false" data-postMode="2" data-sellerid="1704508670">
                    <tr class="first"><td colspan="5"></td></tr>
                    <tr class="shop blue-line">
                        <td colspan="3">
                            <span class="seller" >卖家：<span th:text="${work.wuseraccount}"></span></span>
                            <span class="J_WangWang"   data-display="inline" ></span>

                        </td>
                        <td colspan="2" class="promo">
                            <div>
                                <ul class="scrolling-promo-hint J_ScrollingPromoHint">
                                </ul>
                            </div>
                        </td>
                    </tr>
                    <tr class="item" data-lineid="19614514619:31175333266:35612993875" data-pointRate="0">
                        <td class="s-title">
                            <img src="http://img03.taobaocdn.com/bao/uploaded/i3/18670026332876589/T1A4icFbNeXXXXXXXX_!!0-item_pic.jpg_60x60.jpg" class="itempic"><span class="title J_MakePoint" th:text="${work.wtitle}"></span></a>
                            <div class="props">
                                <span th:text="${work.wcontent}"></span>

                            </div>
                            <a title="消费者保障服务，卖家承诺商品如实描述" href="#" target="_blank">
                                <img src="http://img03.taobaocdn.com/tps/i3/T1bnR4XEBhXXcQVo..-14-16.png"/>
                            </a>
                            <div>
                                <span style="color:gray;">卖家承诺72小时内发货</span>
                            </div>
                        </td>
                        <td class="s-price">

  <span class='price '>
 <em class="style-normal-small-black J_ItemPrice"  th:text="${work.wmoney}"></em>
  </span>
                            <input type="hidden" name="costprice" value="@{}" class="J_CostPrice" />
                        </td>
                        <td class="s-amount" data-point-url="">
                            <input type="hidden" class="J_Quantity" value="1" name=""/>1

                        </td>
                        <td class="s-agio">
                            <div class="J_Promotion promotion" data-point-url="">无优惠</div>
                        </td>
                        <td class="s-total">

                               <span class='price '>
                             <em class="style-normal-bold-red J_ItemTotal "   th:text="${work.wmoney}">作品的价格</em>
                              </span>
                        </td>
                    </tr>



                    <tr class="item-service">
                        <td colspan="5" class="servicearea" style="display: none"></td>
                    </tr>

                    <tr class="blue-line" style="height: 2px;"><td colspan="5"></td></tr>
                    <tr class="other other-line">
                        <td colspan="5">
                            <ul class="dib-wrap">
                                <li class="dib user-info">
                                    <ul class="wrap">
                                        <li>
                                            <div class="field gbook">
                                                <label class="label">给卖家留言：</label>
                                                <textarea style="width:350px;height:80px;" title="选填：对本次交易的补充说明（建议填写已经和卖家达成一致的说明）" name=""></textarea>
                                            </div>
                                        </li>
                                    </ul>
                                </li>
                                <li class="dib extra-info">

                                    <div class="shoparea">
                                        <ul class="dib-wrap">
                                            <li class="dib title">店铺优惠：</li>
                                            <li class="dib sel"><div class="J_ShopPromo J_Promotion promotion clearfix" data-point-url=""></div></li>
                                            <li class="dib fee">  <span class='price '>
 -<em class="style-normal-bold-black J_ShopPromo_Result"  >0.00</em>
  </span>
                                            </li>
                                        </ul>
                                    </div>

                                    <div class="shoppointarea"></div>



                                    <div class="servicearea" style="display: none"></div>
                                </li>
                            </ul>
                        </td>
                    </tr>

                    <tr class="shop-total blue-line">
                        <td colspan="5">店铺合计(<span class="J_Exclude" style="display: none">不</span>含运费<span class="J_ServiceText" style="display: none">，服务费</span>)：
                            <span class='price g_price '>
 <span>&yen;</span><em class="style-middle-bold-red J_ShopTotal"   th:text="${work.wmoney}"></em>
  </span>
                            <input type="hidden" name="1704508670:2|creditcard" value="false" />
                            <input type="hidden" id="J_IsLadderGroup" name="isLadderGroup" value="false"/>

                        </td>
                    </tr>
                    </tbody>
                    <tfoot>
                    <tr>
                        <td colspan="5">

                            <div class="order-go" data-spm="4">
                                <div class="J_AddressConfirm address-confirm">
                                    <div class="kd-popup pop-back" style="margin-bottom: 40px;">
                                        <div class="box">
                                            <div class="bd">
                                                <div class="point-in">

                                                    <em class="t">实付款：</em>  <span class='price g_price '>
 <span>&yen;</span><em class="style-large-bold-red"  id="J_ActualFee"   th:text="${work.wmoney}"></em>
  </span>
                                                </div>

                                                <ul >

                                                    <li><em>收货人:</em><span id="J_AddrNameConfirm"  th:text="${work.consumeraccount}"></span></li>
                                                </ul>
                                            </div>
                                        </div>
                                        <a href="#"
                                           class="back J_MakePoint" target="_top"
                                           data-point-url="">返回购买页面</a>
                                        <a id="J_Go" class=" btn-go"  data-point-url=""  tabindex="0" title="点击此按钮，提交订单。" onclick="comfire()" >提交订单<b class="dpl-button"></b></a>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                    </tfoot>
                </table>
            </div>
        </form>
    </div>

</div>

</body>

<script>
    function comfire() {

        var workid=document.getElementById("wid").value;

	    $.ajax({
		    url: '/api-front/frontneed/payMoneyWork',
		    type: "GET",
		    dataType: "text",
		    data: {wid:workid},
		    success: function (msg) {
			    if (msg == "yes") {
				    alert("付款成功");
				     xadmin.close();
				     xadmin.father_reload();
			    }else if(msg == "no"){
				    alert("付款失败，余额不足");
				    xadmin.close();
				    xadmin.father_reload();
			    }

		    },
		    error: function () {
			    alert("服务器正忙.....");
		    }
	    });



    }


</script>

</html>